package xyz.lwm.lazycat.netpipe.common.endec;

import io.netty.channel.CombinedChannelDuplexHandler;
import xyz.lwm.lazycat.netpipe.common.serial.Serialization;

/**
 * 消息编解码器
 *
 * @author lwm
 */
public class MessageCodec extends CombinedChannelDuplexHandler<MessageDecoder, MessageEncoder> {

    public MessageCodec(Serialization serialization) {
        super(new MessageDecoder(serialization),new MessageEncoder(serialization));
    }

}
